package nju.software.tagmanager.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 类别-标签关系表
 * @TableName rel_category_tag
 */
@TableName(value ="rel_category_tag")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RelCategoryTag implements Serializable {
    /**
     * 
     */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;

    /**
     * 类别id，在类别删除时限制，在类别更新时级联
     */
    @TableField(value = "`category_id`")
    private Integer categoryId;

    /**
     * 标签id，在标签删除时级联，在标签更新时级联
     */
    @TableField(value = "`tag_id`")
    private Integer tagId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}